package com.softline.documentsmall.dao;


import com.softline.documentsmall.entity.HotIssues;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.Date;
import java.util.List;

/**
 * @author zhongweicheng
 * @date 2020/8/25 15:32
 */
@Mapper
public interface HotIssuesMapper {

    List<HotIssues> findByParams(@Param("id") Integer id, @Param("isDelete") Integer isDelete, @Param("content") String content, @Param("title") String title, @Param("currPage")Integer currPage, @Param("pageSize")Integer pageSize, @Param("startDate") String startDate, @Param("endDate")String endDate);

    void insertHotIssue(HotIssues hotIssues);

    void updateHotIssueById(HotIssues hotIssues);

    void softDeleteHotIssueById(Integer id);

}
